/*
·包含多个事件回调函数的对象
·通过执行: commit()来触发mutation的调用,间接更新state
·谁来触发:组件中:$store.dispatch('action名称', data1) /l 'zzz'
·可以包含异步代码(定时器, ajax)
*/

//调用mutations
export const setUser = ({commit},user) =>{
    commit("userstatus",user);
}

export const setToken = ({commit} ,token) =>{
    commit("setToken" ,token);
}
    